package com.ruoyi.system.service.shopping;

import com.ruoyi.system.domain.shopping.Products;

import java.util.List;

/**
 * productsService接口
 * 
 * @author zjh
 * @date 2025-11-21
 */
public interface IProductsService 
{
    /**
     * 查询products
     * 
     * @param productId products主键
     * @return products
     */
    public Products selectProductsByProductId(Long productId);

    /**
     * 查询products列表
     * 
     * @param products products
     * @return products集合
     */
    public List<Products> selectProductsList(Products products);

    /**
     * 新增products
     * 
     * @param products products
     * @return 结果
     */
    public int insertProducts(Products products);

    /**
     * 修改products
     * 
     * @param products products
     * @return 结果
     */
    public int updateProducts(Products products);

    /**
     * 批量删除products
     * 
     * @param productIds 需要删除的products主键集合
     * @return 结果
     */
    public int deleteProductsByProductIds(Long[] productIds);

    /**
     * 删除products信息
     * 
     * @param productId products主键
     * @return 结果
     */
    public int deleteProductsByProductId(Long productId);
}
